/**
 * 定义站点模块
 */
(function (window, angular, undefined) {

    var module = angular.module('water.entity.bcSendPlatform', ['water.common.AJAXService']);

    module.service('$bcSendPlatformService', function ($AJAXService) {

        /**
         * 获取站点model
         */
        this.getModel = function (model) {
            var promise = $AJAXService.post("/BCSendPlatform/getModel", model);
            return promise;
        };
        this.getModelList = function () {
            var promise = $AJAXService.post("/BCSendPlatform/getModelList");
            return promise;
        };
        this.saveModel = function (model) {
            var promise = $AJAXService.post("/BCSendPlatform/saveModel", model);
            return promise;
        }

        this.updateModel = function (model) {
            var promise = $AJAXService.post("/BCSendPlatform/updateModel", model);
            return promise;
        }

        this.deleteModel = function (model) {
            var promise = $AJAXService.post("/BCSendPlatform/deleteModel", model);
            return promise;
        }

    })
}(window, angular));